﻿using Paas.App.Interface.Sys.Admin.Dtos;
using Basefr.App.Messages;

namespace Paas.App.Interface.Sys.Admin.Messages
{
    public class SearchRoleInput : QueryPagedInput
    {
        public string Name { get; set; }
    }
    public class SearchRoleOutput : QueryPagedOutput<RoleDto> { }


    public class SaveRoleInput : SaveInput<RoleDto> { }
    public class SaveRoleOutput : SaveOutput<RoleDto> { }


    public class DeleteRoleInput : DeleteInput { }
    public class DeleteRoleOutput : DeleteOutput { }


    public class SearchPermissionForRoleInput : QueryInput { }
    public class SearchPermissionForRoleOutput : QueryOutput<PermissionForRoleDto> { }


    public class AssignRolePermissionInput : IInput
    {
        public int RoleId { get; set; }
        public string Permission { get; set; }
    }
    public class AssignRolePermissionOutput : IOutput { }


    public class RemoveRolePermissionInput : IInput
    {
        public int RoleId { get; set; }
        public string Permission { get; set; }
    }
    public class RemoveRolePermissionOutput : IOutput { }

}

